package com.gosuncn.tools;


/**
 * 枚举消息
 * @author zxl
 * @date 2021/7/26
 * @param
 * @return
*/
public enum ResultCodeEnum {
    /***
     *文件上传成功
    */
    FILE_UPLOAD(true,21004,"文件上传成功"),
    /***
     *文件上传失败
     */
    FILE_UPLOAD_ERROR(false,21005,"文件上传失败"),
    /***
     *成功
     */
    SUCCESS(true,20000,"成功"),
    /***
     *失败
     */
    FAIL(false,20001,"失败"),
    /***
     *未知错误
     */
    UNKOWN_REASON(false,20002,"未知错误");



    private Boolean success;
    private Integer code;
    private String message;










    ResultCodeEnum(boolean success, Integer code, String message) {
        this.success = success;
        this.code = code;
        this.message = message;
    }

    public Boolean getSuccess() {
        return success;
    }

    public void setSuccess(Boolean success) {
        this.success = success;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }


    @Override
    public String toString() {
        return "ResultCodeEnum{" +
                "success=" + success +
                ", code=" + code +
                ", message='" + message + '\'' +
                '}';
    }
}
